# pyexecjs
import execjs

# info = input("输入")
# js_str = """
#
# function shuffleString(str) {
#       // 参数验证
#       if (typeof str !== 'string') return '';
#
#       const arr = str.split('');
#       const len = arr.length;
#
#       // Fisher-Yates 洗牌算法
#       for (let i = len - 1; i > 0; i--) {
#         const j = Math.floor(Math.random() * (i + 1));
#         [arr[i], arr[j]] = [arr[j], arr[i]]; // 交换位置
#   }
#
#     return arr.join('');
# }
#
#
# """
#
# # 将js进行编译
# js_code = execjs.compile(js_str)
# # 运行shuffleString函数  传入info参数
# r = js_code.call('shuffleString',info)
# print(r)






# 混淆

# info = input("输入")
# js_str = """
#
# function _0x2c50(_0x5771c8,_0x347c88){const _0x18ef80=_0x18ef();return _0x2c50=function(_0x2c5061,_0x213c0e){_0x2c5061=_0x2c5061-0x133;let _0x45cdc5=_0x18ef80[_0x2c5061];return _0x45cdc5;},_0x2c50(_0x5771c8,_0x347c88);}(function(_0x2f8033,_0x3a0ca9){const _0x5033ee=_0x2c50,_0x3f7f36=_0x2f8033();while(!![]){try{const _0x1a081e=parseInt(_0x5033ee(0x137))/0x1+parseInt(_0x5033ee(0x138))/0x2+parseInt(_0x5033ee(0x13e))/0x3*(parseInt(_0x5033ee(0x139))/0x4)+-parseInt(_0x5033ee(0x133))/0x5*(parseInt(_0x5033ee(0x135))/0x6)+parseInt(_0x5033ee(0x13c))/0x7+-parseInt(_0x5033ee(0x13a))/0x8+-parseInt(_0x5033ee(0x13b))/0x9;if(_0x1a081e===_0x3a0ca9)break;else _0x3f7f36['push'](_0x3f7f36['shift']());}catch(_0x44fefd){_0x3f7f36['push'](_0x3f7f36['shift']());}}}(_0x18ef,0x64bd6));function shuffleString11(_0x3ccdec){const _0x134806=_0x2c50;if(typeof _0x3ccdec!==_0x134806(0x134))return'';const _0xe6b645=_0x3ccdec['split'](''),_0x131453=_0xe6b645[_0x134806(0x136)];for(let _0x201a95=_0x131453-0x1;_0x201a95>0x0;_0x201a95--){const _0x202313=Math['floor'](Math['random']()*(_0x201a95+0x1));[_0xe6b645[_0x201a95],_0xe6b645[_0x202313]]=[_0xe6b645[_0x202313],_0xe6b645[_0x201a95]];}return _0xe6b645[_0x134806(0x13d)]('');}function _0x18ef(){const _0x874da0=['length','698398XOtwFl','1324592fJXmBk','24VOvTba','2560568ZdWJOu','4097619zsRxDp','743736ggcIHd','join','123927yumfzB','20rDimsN','string','790206ZgWxUs'];_0x18ef=function(){return _0x874da0;};return _0x18ef();}
#
#
# """
#
# # 将js进行编译
# js_code = execjs.compile(js_str)
# # 运行shuffleString函数  传入info参数
# r = js_code.call('shuffleString11',info)
# print(r)


# 补环境

# info = input("输入")
# js_str = """
#
#   var  window={
#   navigator:{
#   userAgent:'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36'
#   },
#
#   document:{
#   cookie:"wwwww"
#   }
#   }
#
# function _0x1153(_0x163de1,_0x5ed3aa){const _0x13583a=_0x1358();return _0x1153=function(_0x1153ed,_0x18bc15){_0x1153ed=_0x1153ed-0x1ce;let _0x35795a=_0x13583a[_0x1153ed];return _0x35795a;},_0x1153(_0x163de1,_0x5ed3aa);}(function(_0x182990,_0x164614){const _0x3d3f1b=_0x1153,_0x58d287=_0x182990();while(!![]){try{const _0xa861f2=parseInt(_0x3d3f1b(0x1d8))/0x1+parseInt(_0x3d3f1b(0x1ce))/0x2*(parseInt(_0x3d3f1b(0x1d6))/0x3)+-parseInt(_0x3d3f1b(0x1d3))/0x4+-parseInt(_0x3d3f1b(0x1d2))/0x5*(parseInt(_0x3d3f1b(0x1d0))/0x6)+parseInt(_0x3d3f1b(0x1d5))/0x7+parseInt(_0x3d3f1b(0x1cf))/0x8+-parseInt(_0x3d3f1b(0x1d1))/0x9;if(_0xa861f2===_0x164614)break;else _0x58d287['push'](_0x58d287['shift']());}catch(_0x536f84){_0x58d287['push'](_0x58d287['shift']());}}}(_0x1358,0xaac01));function ua_cookies(_0x553134){const _0x49d918=_0x1153;let _0x53885f=window[_0x49d918(0x1d7)]['userAgent']+_0x553134+window[_0x49d918(0x1d4)][_0x49d918(0x1d9)];return _0x53885f;}function _0x1358(){const _0x3ddf88=['navigator','1234678vqNFSl','cookie','34bhqZcj','1158720ENmaBK','6GatJbp','6821604gqSNYO','4203425RfRsia','2761396Pniuoq','document','8876819Bwzgmf','60132tNhViz'];_0x1358=function(){return _0x3ddf88;};return _0x1358();}
#
#
# """
#
# # 将js进行编译
# js_code = execjs.compile(js_str)
# # 运行shuffleString函数  传入info参数
# r = js_code.call('ua_cookies',info)
# print(r)
#


# 补库


info = input("输入")
k = 'secret key 123'
js_str = """
        var CryptoJS = require("crypto-js");
        var k = 'secret key 123'
    function crpyto(i){
        return  CryptoJS.AES.encrypt(i, k).toString()
    }

"""

# 将js进行编译
js_code = execjs.compile(js_str)

r = js_code.call('crpyto', info)
print(r)

